package www.qiyue.QQBoom;

import java.awt.*;
import java.awt.event.InputEvent;

public class DD {
    public static void main(String[] args) throws AWTException {
        int i=1;
        int x=1080;//1315
        int y=793;
        while (true) {
            Robot robot = new Robot();
            if (i==3){
                x=1200;
                i=0;
            }else if(i==2){
                x=1100;
            }
            //robot.mouseMove(x, y);
            robot.delay(2000);
            robot.mousePress(InputEvent.BUTTON1_MASK);
            robot.delay(2000);
            robot.mouseRelease(InputEvent.BUTTON1_MASK);
            i++;

            System.out.println("i = " + i);
        }
    }

}
